var count : int;
var frames : int;
var limiteSprites : int;
var listaSprites : Texture[];

function Update () {
frames ++;
if(frames >= 45)
{
count ++;
renderer.material.mainTexture = listaSprites[count];
frames = 0;
if(count == limiteSprites)
{
count = 0;
renderer.material.mainTexture = listaSprites[count];
}
}
}